package com.yuban.dao;

import com.yuban.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {


    public List<User> getUserLike(String name);
    //获取所有用户
    public List<User> getUserLIst();

    //根据id获取对应用户
    public User getUserById( int id);

    //添加用户
    public int inserUser(User user);

    //通过万能map添加用户
    public int addUser(Map<String, Object> map);

    //修改用户
    public int updateUser(User user);


    //删除用户
    public int deleteUser(int id);


}
